package com.corpgovernment.organization.entity.db;

import com.corpgovernment.common.entity.db.BaseEntity;
import com.corpgovernment.common.handler.Sm4TypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.Table;


/**
 * 用户登录记录表
 *
 * @author jhxue
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "mb_user_login_record")
public class MbUserLoginRecord extends BaseEntity {

	/** 用户id **/
	private String uid;

	/** 部门id **/
	private String corpid;

	/** 组织id **/
	private String orgid;

	/** 终端设备APP;PC **/
	private String source;

	/** 登录token **/
	private String token;

	/** 公司名字 **/
	@ColumnType(typeHandler = Sm4TypeHandler.class)
	private String corpName;

	/** 组织名字 **/
	@ColumnType(typeHandler = Sm4TypeHandler.class)
	private String orgName;

	/** 用户名 **/
	@ColumnType(typeHandler = Sm4TypeHandler.class)
	private String userName;

}
